package com.itheima.itheima_health.mapper;

import com.itheima.itheima_health.pojo.Member;
import com.itheima.itheima_health.pojo.Order;
import com.itheima.itheima_health.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

@Mapper
public interface OrderMapper {
    Integer findByOrderDate(Map ordermap);

    OrderSetting getOrderPeople(Map ordermap);

    Member findByEmail(Map ordermap);

    void addvip(Member member);

    Integer findByCondition(Map ordermap);

   // void addOrder(Order order);

    void updateOrderSetting(OrderSetting orderSetting);

    void addOrder(Order order);

    Map findById4Detail(Integer id);

    Integer findOrderCountByDate(LocalDate value);

    Integer findOrderCountAfterDate(LocalDate value);

    Integer findVisitsCountByDate(LocalDate value);

    Integer findVisitsCountAfterDate(LocalDate value);

    List<Map> findHotSetmeal();
}
